package com.ms.client.bizbase.sys.service;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.ms.client.bizbase.sys.pojo.SysDict;
import com.ms.msclient.MsClient;
import com.ms.msclient.MsClientResponse;
import com.system.comm.model.Page;

@MsClient(value="${service.id.biz-base}", defalut="biz-base")
public interface SysDictService {
	
	@RequestMapping(value = "/sysDict/get")
	public MsClientResponse<SysDict> get(@RequestParam("typeCode")String typeCode, @RequestParam("dictId")String dictId);

	@RequestMapping(value = "/sysDict/saveOrUpdate")
	public MsClientResponse<SysDict> saveOrUpdate(SysDict sysDict);

	@RequestMapping(value = "/sysDict/findByTypeCode")
	public MsClientResponse<SysDict> findByTypeCode(@RequestParam("typeCode")String typeCode);

	@RequestMapping(value = "/sysDict/pageQuery")
	public MsClientResponse<Page<SysDict>> pageQuery(SysDict sysDict, @RequestParam("orderby")String orderby);
}
